import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: () => import('../views/Home.vue')
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import('../views/Login.vue')
  },
  {
    path: '/register',
    name: 'Register',
    component: () => import('../views/Register.vue')
  },
  {
    path: '/order',
    name: 'Order',
    component: () => import('../views/dingdan.vue')
  },
  {
    path: '/menu',
    name: 'Menu',
    component: () => import('../views/Menu.vue')
  },
  {
    path: '/myorder',
    name: 'myorder',
    component: () => import('../views/myorder.vue')
  },
  {
    path: '/submit',
    name: 'SubmitOrder',
    component: () => import('../views/Submit.vue')
  },
  {
    path: '/confirmed',
    name: 'Confirmed',
    component: () => import('../views/Confirmed.vue')
  },
]

const router = new VueRouter({
  routes
})

export default router
